import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: '/enterprise',
  routes: [{
    path: '/',
    component: require('@/page/index').default,
    children: [{
      path: '/',
      name: 'index',
      meta: {
        title: '花瓣儿官网'
      },
      component: require('@/page/index/index').default,
    },{
      path: '/vip',
      name: 'vip',
      meta: {
        title: '会员专区'
      },
      component: require('@/page/vip/index').default,
    },{
      path: '/gsdt',
      name: 'gsdt',
      meta: {
        title: '公司动态'
      },
      component: require('@/page/index/gsdt').default,
    },{
      path: '/cjyw',
      name: 'cjyw',
      meta: {
        title: '财经要闻'
      },
      component: require('@/page/index/cjyw').default,
    },{
      path: '/swyw',
      name: 'swyw',
      meta: {
        title: '税务要闻'
      },
      component: require('@/page/index/swyw').default,
    },{
      path: '/dfzx',
      name: 'dfzx',
      meta: {
        title: '地方资讯'
      },
      component: require('@/page/index/dfzx').default,
    },{
      path: '/news/:id',
      name: 'newsItem',
      meta: {
        title: '花瓣儿新闻'
      },
      component: require('@/page/news/item').default,
    },{
      path: '/index/:id',
      name: 'indexItem',
      meta: {
        title: '花瓣儿新闻'
      },
      component: require('@/page/index/item').default,
    }]
  }]
})
